package MTT::Schema::Result::Param;

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

use strict;
use warnings;

use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
extends 'DBIx::Class::Core';

__PACKAGE__->load_components("InflateColumn::DateTime", "EncodedColumn");

=head1 NAME

MTT::Schema::Result::Param

=cut

__PACKAGE__->table("params");

=head1 ACCESSORS

=head2 id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0

=head2 name

  data_type: 'varchar'
  is_nullable: 0
  size: 23

=head2 descr

  data_type: 'varchar'
  is_nullable: 1
  size: 42

=head2 compute

  data_type: 'varchar'
  is_nullable: 1
  size: 128

=head2 type

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

=cut

__PACKAGE__->add_columns(
  "id",
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
  "name",
  { data_type => "varchar", is_nullable => 0, size => 23 },
  "descr",
  { data_type => "varchar", is_nullable => 1, size => 42 },
  "compute",
  { data_type => "varchar", is_nullable => 1, size => 128 },
  "type",
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
);
__PACKAGE__->set_primary_key("id");

=head1 RELATIONS

=head2 alarm_params

Type: has_many

Related object: L<MTT::Schema::Result::AlarmParam>

=cut

__PACKAGE__->has_many(
  "alarm_params",
  "MTT::Schema::Result::AlarmParam",
  { "foreign.id_param" => "self.id" },
  { cascade_copy => 0, cascade_delete => 0 },
);

=head2 report_params

Type: has_many

Related object: L<MTT::Schema::Result::ReportParam>

=cut

__PACKAGE__->has_many(
  "report_params",
  "MTT::Schema::Result::ReportParam",
  { "foreign.id_param" => "self.id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2011-04-23 14:00:32
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8Bi1n2MH6Kf9lHxqVZxfcQ


# You can replace this text with custom content, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
